

# 检查是否是允许上传的文件
def allowed_pic_file(file_type):
    return file_type in ['image/jpeg', 'image/png', 'jpeg']


# 获取项目根路径
def get_root_path(current_app):
    return current_app.instance_path.replace('\\instance', '')
